package com.ruoyi.operation.order.management.mapper;

import com.ruoyi.operation.order.management.domain.Management;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author wangzhiwei phone(WeChat)):15062775766
 * @date 2020/5/3 16:56
 */
public interface IManagementMapper {

    /**
     * 分页查询所有的营销数据
     * @param management
     * @return
     */
    List<Management> findAll(Management management);

    /**
     * 修改联系状态
     * @param management
     * @return
     */
    int changeStatus(Management management);

    /**
     * 修改打开的状态
     * @param dataId
     */
    int changeIsOPen(@Param("dataId") String dataId);

    /**
     * 根据id查询对应的对象
     * @param dataId
     * @return
     */
    Management findById(@Param("dataId") String dataId);

    /**
     * 改变状态
     * @param management
     * @return
     */
    int noContact(Management management);

    /**
     * 根据id查询对应的联系了几次
     * @param dataId
     * @return
     */
    int contacNumber(@Param("dataId") String dataId );

    /**
     * 导出Excel表格信息
     * @param management
     * @return
     */
    List<Management> exportExcel(Management management);
}
